/*
* @author : TF-BJ-C064
* @creation : 2014-6-9 下午3:55:47
* @description : 
*
*/

package com.service;

import java.util.List;

import com.base.BaseService;
import com.base.PageBean;
import com.base.UserBean;
import com.bean.ParkManager;
import com.bean.SysUser;

public interface ParkManagerService{

	public ParkManager login(ParkManager pk, String ip) throws Exception;
	public ParkManager login(Long userId, String token, String ip) throws Exception;//通过token登录
	public ParkManager get(Long id) throws Exception;
	public String findNames(String name);
	/**
	 * 根据token获取用户信息
	 * <p>Title: getByToken</p>
	 * <p>Description: </p>
	 * @param token
	 * @param usercode 用户登录帐号
	 * @return
	 * @throws Exception
	 */
	public ParkManager getByToken(String token, Long userId) throws Exception;
	public String update(ParkManager parkManager);
	/**
	 * 获取停车场用户
	 * <p>Title: query</p>
	 * <p>Description: </p>
	 * @param parkManager  筛选条件，用户信息
	 * @param parkId  停车场ID
	 * @return 停车场用户列表 
	 * @throws Exception
	 */
	public List<ParkManager> query(ParkManager parkManager, Long parkId) throws Exception;
	public List getMyParkUsers(ParkManager pm) throws Exception;//查询我的停车场管理（管理员&收费员）用户列表
	public List getMyParkUsers(ParkManager pm, ParkManager queryCriteriaPM) throws Exception;//查询我的停车场管理（管理员&收费员）用户列表
	
	public List findByProperty(String propertyName, Object value) throws Exception;
	public String add(ParkManager parkManager, Integer[] parkIds) throws Exception;
	public String update(ParkManager parkManager, Integer[] parkIds) throws Exception;
	public String delete(Long id, Integer flag) throws Exception;
	public List<ParkManager> findbyrole(ParkManager manager,PageBean page);
	public String lock(Long id, Integer flag);
	public String save(ParkManager parkManager);
}
